<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对齐</title>
    <style>
        img{
            vertical-align: middle;/* baseline默认基线对齐 bottom底对齐 top顶对齐 middle中线对齐 */
        }
    </style>
</head>
<body>
    <div>
        <img height="100px" src="https://img1.baidu.com/it/u=1792249350,650626052&fm=253&fmt=auto&app=120&f=JPEG?w=1200&h=675" alt="">
        <span>图片和文字对齐</span>
    </div>
</body>
</html>